add_subdirectory(login)
add_subdirectory(sql)
add_subdirectory(net)
add_subdirectory(chat)
add_subdirectory(log)
add_subdirectory(redis)
add_subdirectory(person_info)
add_subdirectory(club_info)
add_subdirectory(live_info)

add_executable(campus_server main.cpp)

target_link_libraries(
    campus_server
    campus_login
    campus_sql
    campus_chat
    campus_net
    campus_logger
    campus_redis
    campus_person_info
    campus_club_info
    campus_live_info
    -lboost_system
    -lboost_chrono
    -lssl
    -lcrypto
    -lmysqlcppconn
    -lhiredis
)